//数字和字母
function numberLetter(num){
    var re = /^[A-Za-z0-9]+$/;
    return re.test(num);
}
//电话号码
function telePhone(num){
    var re = /^(13[0-9]|14[0-9]|15[0-9]|166|17[0-9]|18[0-9]|19[8|9])\d{8}$/;
    return re.test(num);
}
//密码验证
function password(num){
    var re = /^\w{3,20}$/;
    return re.test(num);
}
export {numberLetter,telePhone,password}